package cn.swing.his.pojo.finance.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class FinanceDetail implements Serializable {
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("交易人")
    private String name;
    @ApiModelProperty("收支类型")
    private String type;
    @ApiModelProperty("金额")
    private Double price;
    @ApiModelProperty("交易时间")
    private LocalDateTime dealTime;
    @ApiModelProperty("交易描述")
    private String description;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;

}
